import request from '@/utils/request'

// 获取收藏列表
export const getCollect = () => request.get('/user/favorites')

// 退出登录
export const logout = () => request.post('/user/logout')
// 获取出租列表
export const getSell = () => request.get('/user/houses')
// 获取热门城市
export const getCity = () => request.get('/area/hot')
// 获取所有城市的数据
export const getAllCity = () => request.get('/area/city?level=1')
// 发布房屋所需的条件
export const gethouse = () => {
  return request.get('/houses/params')
}
// 筛选房屋的时候获取房屋数据
export const getsearchhouse = () => {
  return request.get('/houses?cityId=AREA%7C88cff55c-aaa4-e2e0')
}
// 获取地图数据
export const getMap = () => {
  return request.get('/area/map?id=AREA%7C88cff55c-aaa4-e2e0')
}
export const getNewMap = (id) => {
  return request.get('/area/map', {
    params: {
      id
    }
  })
}
